import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue'),
    children: [
      {
        path: '/',
        name: 'Index',
        component: () => import('../views/Index.vue')
      },
      {
        path: '/Index2',
        name: 'Index2',
        component: () => import('../views/Index2.vue')
      },
      {
        path: '/Index3',
        name: 'Index3',
        component: () => import('../views/Index3.vue')
      }
    ]
  },
  {
    path: '/Home',
    name: 'Home',
    component: () => import('../views/Home.vue'),
    
  },
  {
    path: '/Load',
    name: 'Load',
    component: () => import('../views/Load.vue')
  },
  {
    path: '/Index',
    name: 'Index',
    component: () => import('../views/Index.vue')
  },
  {
    path: '/CommInfo',
    name: 'CommInfo',
    component: () => import('../views/CommInfo.vue')
  },
  {
    path: '/Checkout',
    name: 'Checkout',
    component: () => import('../views/Checkout.vue')
  },
  {
    path: '/Payment',
    name: 'Payment',
    component: () => import('../views/Payment.vue')
  },
  
]

const router = new VueRouter({
  routes
})

export default router
